package com.hsqyz.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 令牌无效异常
 *
 * @author lcz
 */
@Setter
@Getter
public class TokenInvalidException extends RuntimeException {

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误明细，内部调试错误
     */
    private String detailMessage;

    public TokenInvalidException() {
        super();
    }

    public TokenInvalidException(String message) {
        this.message = message;
    }

    public TokenInvalidException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

}
